Typing and whole genome sequencing